﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OCompleteMacNGReport.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OCompleteMacNGReport" %>


<form id="pagerForm" method="post" action="MacModel/OCompleteMacNGReport.aspx">
<input type="hidden" name="Year" value="<%=Year %>" />
<input type="hidden" name="Month" value="<%=Month %>" />

<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="MacModel/OCompleteMacNGReport.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    请选择要查看的月份:
                </td>
                <td>                   
                    <select name="Year" class="combox">
                        <%=GetYearList()%>
                    </select>
                   <select name="Month" class="combox">
                        <option value="01" <%=Month==1?"selected":"" %>>1月</option>
                        <option value="02" <%=Month==2?"selected":"" %>>2月</option>
                         <option value="03" <%=Month==3?"selected":"" %>>3月</option>
                         <option value="04" <%=Month==4?"selected":"" %>>4月</option>
                         <option value="05" <%=Month==5?"selected":"" %>>5月</option>
                        <option value="06" <%=Month==6?"selected":"" %>>6月</option>
                         <option value="07" <%=Month==7?"selected":"" %>>7月</option>
                         <option value="08" <%=Month==8?"selected":"" %>>8月</option>
                         <option value="09" <%=Month==9?"selected":"" %>>9月</option>
                        <option value="10" <%=Month==10?"selected":"" %>>10月</option>
                         <option value="11" <%=Month==11?"selected":"" %>>11月</option>
                         <option value="12" <%=Month==12?"selected":"" %>>12月</option>                        
                   </select>
                </td>
                <td>
                    <div class="subBar">
            <ul>
                <li>
                    <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                </li>
                <li>
                    <div class="buttonActive">
                        <a  href="MacModel/OCompleteMacNGReportPageHighcharts.aspx?Year=<%=Year %>&Month=<%=Month %>" target="_blank"><span>打印</span></a>
                    </div>
                </li>
            </ul>
        </div>
                </td>
            </tr>
        </table>
        
    </div>
</div>
<div class="pageContent" layouth="40"> 
    <iframe id="OCompleteMacNGReportIframe" src="MacModel/OCompleteMacNGReportPageHighcharts.aspx?Year=<%=Year %>&Month=<%=Month %>"  width="1000" height="2500" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe> 
</div>

<%--
    <div layoutH="40">
        <h2>一.生产一次合格率</h2>
        <div>1.一次性能检测合格台数：<%=OInspection_GetReport1(Year, Month)["NotNGCount"]%>台,性能检测台数：<%=OInspection_GetReport1(Year,Month)["AllCount"]%>台.一次性能检测合格率：<%=Convert.ToDecimal(OInspection_GetReport1(Year,Month)["FPY"]).ToString("F1")%>%（一次性能检测合格数/性能检测台数X100%）.</div>
        <asp:GridView ID="gvReport1" runat="server"  cssclass="list">
                 <HeaderStyle BackColor="#99CCFF"/>
        </asp:GridView>
        <div>2.一次出入库检查合格台数：<%=OInspection_GetReport2(Year, Month)["NotNGCount"]%>台,出入库台数：<%=OInspection_GetReport2(Year,Month)["AllCount"]%>台.一次出入库合格率：<%=Convert.ToDecimal(OInspection_GetReport2(Year,Month)["FPY"]).ToString("F1")%>%（一次出入库合格数/出入库台数X100%）.</div>
        <asp:GridView ID="gvReport2" runat="server"  cssclass="list">
                 <HeaderStyle BackColor="#99CCFF"/>
        </asp:GridView>
        <h2 >二.各机型不良率</h2>         
        <%=BindReport3Dat2()%>
        <h2>三.生产品质信息表</h2>
        <asp:GridView ID="gvReport4" runat="server"  cssclass="list">
                 <HeaderStyle BackColor="#99CCFF"/>
        </asp:GridView>
        <h1>四.重点问题汇总</h1>
        <asp:repeater id="gvReport5" runat="server"> 
            <HeaderTemplate>
                <table class="list" >
                    <thead>
                        <tr>
                             <th >项目</th> 
                             <th >频率（不良次数/不良总次数）</th>
                        </tr>
                    </thead>
            </HeaderTemplate>    
            <ItemTemplate>
                    <tr>
                        <td><%# Eval("Exceptionrecord") %></td>
                        <td><%# Eval("NGCount") %>/<%# Eval("ALLNGCount") %></td>
                    </tr>
            </ItemTemplate>
            <FooterTemplate>
                    </tbody>
                </table>
            </FooterTemplate>
        </asp:repeater>
        
         <h1>五.外协件（性能测试与出入库检查）品异汇总</h1>
          <asp:repeater id="gvReport6" runat="server"> 
            <HeaderTemplate>
                <table class="list" >
                    <thead>
                        <tr>
                             <th >供应商</th> 
                             <th >次数</th>
                        </tr>
                    </thead>
            </HeaderTemplate>    
            <ItemTemplate>
                    <tr>
                        <td><%# Eval("Supplier") %></td>
                        <td><%# Eval("NGCount") %></td>
                    </tr>
            </ItemTemplate>
            <FooterTemplate>
                    </tbody>
                </table>
            </FooterTemplate>
        </asp:repeater>
        
    </div>--%>

</form>